package com.doupi.partner.manager.authenticator.athuc;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 带验证码的token
 * 
 * @author Super Jens Wang
 * @version 1.0 on 2017/4/4 上午11:12.
 */
public class CaptchaToken extends UsernamePasswordToken {
	private static final String DEFAULT_INVALID_MESSAGE = "验证码不正确";
	public static final String CAPTCHA_CACHE_KEY = CaptchaToken.class.getName() + "_CAPTHA";
	private String captcha;
	private String invalidMessage;

	public CaptchaToken(String username, String password, boolean rememberMe, String host, String captcha) {
		super(username, password, rememberMe, host);
		this.invalidMessage = DEFAULT_INVALID_MESSAGE;
		this.captcha = captcha;
	}

	public String getCaptcha() {
		return captcha;
	}

	public String getInvalidMessage() {
		return invalidMessage;
	}
}
